﻿namespace NTLib.Core.Exceptions
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <seealso cref="System.Exception" />
    public sealed class BadExceptionUsedException<T> : Exception
        where T : Exception
    {
        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="BadExceptionUsedException{T}"/> class.
        /// </summary>
        public BadExceptionUsedException(Exception innerException)
          : base (String.Format(Strings.ExceptionResources.BadExceptionMessage, typeof(T).FullName), innerException)
        {
            
        }

        #endregion
    }
}
